/* **********************************************************
 * Copyright 2010 Dimitar Vangelovski
 *
 * This file is part of the Gens3 3D Engine.
 * 
 * The Gens3 3D Engine is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * The Gens3 3D Engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with the Gens3 3D Engine; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA
 * **********************************************************/


#include "common.h"
#include "MeshFace.h"

CMeshFace::CMeshFace()
{
	m_nVertexIndex[0] = 0;
	m_nVertexIndex[1] = 0;
	m_nVertexIndex[2] = 0;

	m_nMeshMaterialID = -1;
	m_nMeshSmoothing = -1;

	m_bVert01 = false;
	m_bVert12 = false;
	m_bVert20 = false;
}

CMeshFace::CMeshFace(const CMeshFace &other)
{
	m_nVertexIndex[0] = other.GetVertexIndex(0);
	m_nVertexIndex[1] = other.GetVertexIndex(1);
	m_nVertexIndex[2] = other.GetVertexIndex(2);

	m_nMeshMaterialID = other.GetMeshMtlID();
	m_nMeshSmoothing = other.GetMeshSmooth();

	m_bVert01 = other.IsVert01Conn();
	m_bVert12 = other.IsVert12Conn();
	m_bVert20 = other.IsVert20Conn();
}

CMeshFace::CMeshFace(int vi1, int vi2, int vi3, int mmtlid, int msmooth, bool v01, bool v12, bool v20)
{
	m_nVertexIndex[0] = vi1;
	m_nVertexIndex[1] = vi2;
	m_nVertexIndex[2] = vi3;

	m_nMeshMaterialID = mmtlid;
	m_nMeshSmoothing = msmooth;

	m_bVert01 = v01;
	m_bVert12 = v12;
	m_bVert20 = v20;
}

CMeshFace::~CMeshFace()
{
}
